Encryption key generation in encrypted storage devices

ABSTRACT

A system and method of generating an encryption key in a self-encrypting mass storage device that includes using a manual input device as input for a micro-controller that contains a cyclic counter. An input device event triggers the micro-controller to read the current state of the cyclic counter. An accumulation of cyclic counter values is used as a source of entropy to seed a deterministic random number generator. The output of the deterministic random number generator is used as an encryption key for encryption/decryption processes within the mass storage device.

CROSS REFERENCE TO RELATED APPLICATIONS

Not applicable.

STATEMENT REGARDING FEDERALLY SPONSORED RESEARCH OR DEVELOPMENT

Not applicable.

FIELD OF THE INVENTION

The present invention relates to encrypted storage devices, and more particularly to the creation of encryption key entropy used within encrypted storage devices.

BACKGROUND OF THE INVENTION

Encrypted storage devices are used to store sensitive and confidential information. Drives of the self-encrypting variety contain their own encryption engine in which data gets encrypted when being written, and decrypted when read. Paramount to this whole process is the encryption key. How did this key get created? Who created it and in what country? What is its entropy?

A strong encryption key has the maximum amount of entropy allowed by its size. For example, a 256 bit AES key should have 256 bits of entropy. An encryption key based on a user password has relatively little entropy. A password of 8 characters, assuming upper and lower chase letters and numbers, can generate up to 218,340,105,584,896 different numbers. Which seems like a lot, but not when compared to 1.16×10⁷⁷ possible values available from a 256 bit key.

Given the ever increasing processing power of computers, it is desirable to have maximum entropy in order to thwart brute force attacks. Therefore, an encryption key based on a user password is not the most desired means.

Generating a truly random number is difficult. Some mass storage manufacturers program encryption keys at the factory. These keys are generated by factory computers and copied into a region of private memory within the mass storage device. Customers are typically concerned with how these keys are created and whether the factory can associate a serial number with an encryption key. In addition, can the factory be trusted to create encryption keys with sufficient entropy? And, do mass storage devices contain duplicate keys?

Given the difficulty of having a mass storage device create its own entropy, once factory programmed encryption keys are zeroized, the drive will no longer work and becomes a paper weight.

There is accordingly an unmet need in the art to provide a mass storage device with the built-in ability to create a virtually unlimited supply of encryption keys with the entropy equivalent to its key length.

An example of a prior art device is shown in US Publication No. 2011/0075840, entitled Method and System for Generating Random Numbers in a Storage Device, filed Sep. 30, 2009, to Fernando Zayas et al.

Another example of a prior art device is shown in US Publication No. 2008/0263363, entitled Portable Data Encryption Device with Configurable Security Functionality and Method for File Encryption, filed Jan. 22, 2008 to Robert R. Jueneman.

A further example of such a prior art device is shown in U.S. Pat. No. 6,044,388, entitled Pseudo-random number generator, issued Mar. 28, 2000 to Robert S. Debellis et al.

Another prior art device is shown in U.S. Pat. No. 5778069, entitled Non-biased pseudo random number generator, issued Jul. 7, 1998 to Thomlinson et al.

A prior art device is shown in U.S. Pat. No. 8,001,054, issued Aug. 16, 2011 entitled System and method for generating an unpredictable number using a seeded algorithm, to Lee J. Peart et al.

A further prior art device is shown in U.S. Pat. No. 4,694,412, issued Sep. 15, 1987, entitled Random number generator for use in an authenticated read-only memory, to Domenik et al.

A prior art device is shown in U.S. Pat. No. 7,421,462, issued Sep. 2, 2008, entitled Method and apparatus for generating a random bit stream, to Castejon-Amenedo et al.

Another prior art device is shown in U.S. Pat. No. 6,728,740, entitled Random number generator seeding method and apparatus, to Kelly et al. This patent shows a plurality of event sensors associated with separate counters, and which is used to create a seed number which is then stored in a seed register. The counters identified in this patent are for a time stamp count, instructions executed, date of reads and writes, and a microsecond timer.

A publication in US 2012/0179735 having a filing date of Jan. 16, 2011 shows a device entitled Scalable random number generation, having inventors Ferguson et al.

SUMMARY OF THE INVENTION

The present invention relates to disk drives having encryption, and more specifically to removable disk drives which have password protection.

The apparatus and system according to the present invention provides a mass storage device with an integrated input device mechanism that is electrically connected to a micro-controller equipped with a cyclic counter. In use, an input event causes the micro-controller to read the cyclic counter's current value; a predetermined number of such input events results in providing a mechanism of creating enough entropy to seed a deterministic random number generator (DRNG). The output of the DRNG is then used as an encryption key for encrypting/decrypting data contained within mass storage media.

Certain embodiments of the invention have other aspects in addition to or in place of those mentioned above. These aspects will become apparent to those skilled in the art from a reading of the following detailed description when taken with reference to the accompanying drawings.

Other objects and advantages of the present invention will be more readily apparent from the following detailed description when read in conjunction with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 schematically depicts a self-encrypting mass storage device with an integrated human interface device (“HID”).

FIG. 2 represents a flow diagram showing a user defining a PIN which simultaneously results in the creation of a random seed with sufficient entropy.

FIG. 3 schematically depicts a self-encrypting mass storage device and a separate HID which are both connected to a host computer, whereby event detection occurs in the host computer, to provide entropy creation.

FIG. 4 is a perspective view of a preferred embodiment of a self-encrypting flash drive with integrated user authentication.

DETAILED DESCRIPTION OF THE INVENTION

FIG. 1 schematically depicts a self-encrypting mass storage device 100 with an integrated human interface device 101 (hereafter “HID 101”). A host computer 109 is shown which is in communication with the device 100. The HID 101 in this view is represented by a plurality of manually operable keys. The device 100 includes a communication channel 110 for communicating with the host computer 109, an encryption engine 106, and a storage media 107 for storing encrypted data 111. The encrypted data 111 can be written to the storage media 107 and can be later read from the storage media 107. The device 100 also includes a microcontroller 108, described further below.

As will be seen from the following discussion and the accompanying drawings, the device, system, and method of the present invention has the following significant advantageous features: (a) it is applied to a storage device having its own input mechanism; (b) it does NOT calculate the time between events, but rather uses key presses as a random interrupt; and (c) it ties creation of entropy to PIN definition.

The encryption engine 106 communicates with an external host computer via a communication channel 110, and also communicates with the storage media 107. The encryption engine 106 is connected to the microcontroller 108 such that the encryption engine 106 can access the encryption key 105. The encryption engine 106 uses the encryption key 105 to encrypt received data through the communication channel 110 for storage on the storage media 107. The encryption engine 106 also receives and decrypts the encrypted data 111 which is read from the storage media 107, using the encryption key 105.

The microcontroller 108 includes a cyclic counter 102, a memory for storing an event history 103, an encryption key 105, and a DRNG algorithm 104. As noted above, the abbreviation DRNG stands for “deterministic random number generator.” The cyclic counter 102 in a preferred embodiment is a 16 bit cyclic counter running at 1 MHz.

FIG. 1 additionally shows a vibration sensor 112 having an output connected to the microcontroller 108. The sensor 112 is an optional feature, which can be omitted from the main embodiment, and which is instead used in another embodiment of the present invention.

The apparatus and system of FIG. 1 is discussed in greater detail, as follows.

The self-encrypting mass storage device 100 is of typical architecture in which the encryption engine 106 is coupled via the communication channel 110 with the host computer 109. The communication channel 110 can, for example, be of a type known as USB or Firewire, and it is contemplated that the channel 110 can also include a mechanism in which data can be exchanged with a host.

The encryption key 105 is used by the encryption engine 106 to operate on data passed over the communication channel 110 to create the encrypted data 111 which is then stored on the storage media 107. Likewise, the encrypted data 111 is retrieved from the storage media 107 and is decrypted prior to being sent via the communication channel 110 to the host computer 109.

A significant feature of the present invention relates to the apparatus and method by which the encryption key 105 is generated. In a preferred embodiment of the present invention, the self-encrypting drive 100 contains an integrated human interface device 101 such as buttons for entering a PIN (personal identification number). The entered PIN is for user authentication and must be defined by the user before the self-encrypting mass storage device 100 can be used.

The micro-controller 108 is provided with an internal cyclic counter 102 as described above, running at a high frequency. The input device 101 generates events during the process of defining a user PIN, as explained in the following. For example, each time a button of the input device 101 is pressed, an event is triggered causing the micro-controller 108 to read the value of the cyclic counter 102. The cyclic counter 102, at any given instant, has a higher degree of entropy than the input value itself For example, in one example the mass storage device 100 comes equipped with 10 numeric digits for defining a PIN. A 4 digit PIN can, therefore, have 10,000 unique values. On the other hand, a 16 bit cyclic counter read on each event will generate any of 4,294,967,296 unique values. In fact, the exact same PIN will generate a completely different set of random values based on the cyclic counter 102 because it's impossible for humans to replicate the timing of their actions down to the micro-second range.

Upon detection of an event, namely actuation of the keys in the input device 101 in the above example, the numeric value of the cyclic counter 102 is read and then saved in the event history 103. This step is repeated a predetermined number of times, to achieve a desired level of entropy. When enough cyclic counter values have been accumulated, i.e. when the predetermined number of events are detected, the event history values 103 are input to a deterministic random number generator (DRNG) 104. The output of the DRNG 104 is then saved and used as the encryption key 105 for the self-encrypting mass storage device 100.

Consider the following example: a micro-controller 108 is provided with a 16 bit cyclic counter 102 running at 1 MHz. At this rate, the cyclic counter 102 will wrap around from 0xffff to 0x0000 every 65.536 milliseconds. In relation to human response time, this is very fast, making it impossible for a human to interact with the input mechanism 101 to create duplicate random seeds in the event history 103.

Now assume the encryption engine 106 is using AES-256 which means it requires a 256 bit key with 256 bits of entropy. Since the cyclic counter 102, in this example, is 16 bits in length, it will require 16 events to generate a 256 bit random seed (16 bits×16 events=256 bits). For example, the recorded events—each 16 bits in length in this example—are strung together sequentially to form a much longer number, in this instance the much longer number being 256 bits in length. Therefore, the process of creating a PIN for authentication will require at least 16 button presses in order to generate the requisite amount of entropy.

It will be understood that the values stored in the event history for the 16 events need not be used sequentially in forming the 256 bit number, but can be used in any predetermined order, or even in a random order. All such variations would be within the ambit of skill of any one having skill in the disk encryption arts.

Another source of entropy is the vibration sensor 112 discussed above. When connected to the micro-controller 108, the input signal will change state when vibration is detected. Thus, by simply handling the drive, random values are being created and stored in event history 103. This assures adequate entropy that is independent of PIN length.

FIG. 2 represents a flow diagram showing a user defining a PIN which simultaneously results in the creation of a random seed with sufficient entropy. The mass storage device 100 begins in the unprovisioned state, i.e. it has not been configured with any user PINs and is not useable. The process starts when a user defines a new PIN in step 201. In the embodiment of FIG. 1, this is accomplished by use of the input device 101. On each button press of the input device 101, an event is triggered that results in the current value of the cyclic counter 102 being recorded. After the user has entered their desired PIN, a check is performed at step 202 to determine the amount of entropy collected so far. For example, in order to create 256 bits of entropy, 16 events need be triggered on a 16 bit counter (16 bits×16 events=256 bits). Therefore, it will require at least 8 trigger events as a result of entering the new PIN as shown in 202.

The user confirms their PIN by entering it a 2^(nd) time as indicated in step 203. The assumption is that an 8 digit PIN entered twice yields 16 distinct trigger events. If PIN length did not create enough entropy, the process aborts and the user must try again as indicated in step 207.

If the 1^(st) and 2^(nd) PIN entries do not match as tested in step 204, the process is aborted and the user must begin again, as indicated in step 208. If 1^(st) and 2^(nd) PIN entries match in step 204, a new PIN is created and there is adequate entropy to create an encryption key. This YES value branches to step 205. At step 205, the event history is supplied as a seed value to the DRNG 205 and an encryption key is created as indicated in step 206. The mass storage device 100 is now in the provisioned state and ready for use.

In the foregoing discussion, the concept of “provisioning” a storage media is as defined for example in the online source “webopedia” as authenticating an initializing a drive for use. In the present invention, this includes (a) creating a PIN to identify a user, and (b) formatting the drive so data can be stored and retrieved. The formatting in (b) can be by creating and initializing a FAT (file allocation table), which is what happens for example during a “quick format” in a Windows (a TM of Microsoft) operating system. A full format could optionally be used, but is not preferred, in view of the very much longer time needed to completely format a drive by writing data to every sector.

It should be pointed out that if the vibration sensor 112 is being used as a source of entropy, PIN length can be independent of entropy. Handling the mass storage device during manufacturing, shipping, sales, and unpacking will likely create more than enough trigger events. Even so, a separate test could be provided, analogous to FIG. 2, for ensuring sufficiency of the entropy generated by the vibration sensor 112. This could be significant, for example, if the vibration sensor 112 is inactivated, or if the wiring connecting it to the microcontroller 108 is not completely correct or is defective.

FIG. 3 schematically depicts a self-encrypting mass storage device 100 and a separate HID 301 which are both connected to a host computer 109, whereby event detection 302 occurs in the host computer 109 to provide entropy creation. Here, the self-encrypting mass storage device 100 does not itself include an HID, and instead the HID 301 is electrically connected to the host computer 109. As the user is interacting with the computer 109, HID events are forwarded to the mass storage device 100 by event detection software, indicated at the event detection 302, resulting in a trigger (shown by the dashed line in FIG. 3) to read the cyclic counter 102.

These events can be sent via the same communication channel that contains clear data 110 or can be sent by a distinct channel. For example, a self-encrypting mass storage device 100 may connect as both a mass storage device 100 and a 2^(nd) independent device. In this case, the 2^(nd) independent device is notified by the event detection routines 202, in real time, when the user types on the keyboard or clicks a mouse button.

FIG. 4 is a perspective view of a preferred embodiment of a self-encrypting flash drive 400 with integrated user authentication. More specifically, the self-encrypting flash drive 400 is equipped with a USB connector 404 for making connections to a host computer 109. The self-encrypting flash drive 400 is locked by default and must be opened before access is provided to data contained within. This is done by entering a PIN via the input device 101 which here comprises a plurality of numeric buttons 402 and a key button 403. The process is as follows:

-   -   1) Push key button 103 to wake drive 400.     -   2) Drive 400 will wake from a sleep state and illuminate a red         status indicator 401.     -   3) User enters a PIN by pushing the numeric buttons 402.     -   4) User pushes key button 403 to terminate PIN entry.     -   5) PIN is hashed and compared with an expected result.     -   6) Green status indicator 401 will illuminate if correct PIN was         entered.

An unprovisioned self-encrypting drive 400 has neither a PIN nor an encryption key defined. Therefore, it must be provisioned before use. This is done by defining a PIN as shown in FIG. 2. In so doing, an encryption key is created concurrently with PIN creation, with entropy independent of PIN content. More specifically, the entropy is relatively much greater than that of the PIN content. Once the process of PIN definition is complete, the drive can be formatted and used to store data.

As an example, in operation, once the PIN has been set, the device 100 is ready for subsequent use. During subsequent use, the PIN is entered, and the microcontroller 108 uses the entered PIN to access the much longer and much more random encryption key 105. The encryption key 105 is then transferred to the encryption engine 106, which uses the encryption key 105 to decrypt the data residing on the storage media 107. That decrypted data is then forwarded to the host computer 109 in its decrypted form. Thus, the data then exists on the host computer 109 in clear form and it also resides in the storage media 107 in its encrypted form. The encryption engine 106 is what performs the conversion from clear text to cypher text in one direction, and from cypher text to clear text in the other direction.

The foregoing embodiments are described in sufficient detail to enable those skilled in the art to make and use the invention, and it is to be understood that other embodiments would be evident based on the present disclosure and that process or mechanical changes may be made without departing from the scope of the present invention.

As a further variation, the encryption key 105 can be stored either in a plain form or alternatively in any manner of an encrypted form. And, the encryption key—in plain form or encrypted form—can be stored within a memory inside the microcontroller 108 itself; in the storage media 107; or within a separate hidden memory which can be accessed only upon entry of a PIN. These and other variations would be within the ambit of any one having skill in the disk encryption arts.

It will be further understood that during entry of the PIN, either initially or at any later times, software is provided within the microcontroller to perform the steps described hereinabove regarding detection of the key strokes, comparison the initial PIN with the re-entered PIN, compilation of the events in the event history, and for any other operations described hereinabove. There and all other variations are within the ambit of skill of any one having ordinary skill in the disk encryption arts.

In the foregoing description, numerous specific details are given to provide a thorough understanding of the invention. However, it will be apparent that the invention may be practiced without these specific details. In order to avoid obscuring the present invention, some well-known circuits, system configurations, and process steps are not shown in detail and would be understood by any one having skill in the relevant art.

Further, the device 100 of the present invention can draw power from the host computer, as would be conventional for USB-type devices. The device 100 can alternatively have a separate power supply, for example using a power cord and adapter, for use with a conventional power outlet. Alternatively, the device can include its own battery as a power source, and this is a preferred embodiment where the above-discussed vibration sensor 112 is provided.

Likewise, the drawings showing embodiments of the apparatus/device are semi-diagrammatic and not to scale and, particularly, some of the dimensions are for clarity of presentation and are shown greatly exaggerated in the drawings.

While the invention has been described in conjunction with a specific best mode, it is to be understood that many alternatives, modifications, and variations will be apparent to those skilled in the art in light of the foregoing description and accompanying drawings. Accordingly, it is intended to embrace all such alternatives, modifications, and variations that fall within the scope of the included claims. All matters hithertofore set forth herein or shown in the accompanying drawings are to be interpreted in an illustrative and non-limiting sense. 

What is claimed is:
 1. A self-encrypting mass storage device for storing encrypted data, comprising: an input device for an initial manual input of a personal identification number (PIN); a microcontroller in communication with said input device, for detecting events associated with the manual input of said PIN and for detecting a re-entry of said PIN, the re-entry of the PIN for generating a second set of events, the microcontroller for performing a check of the amount of entropy collected from the initial manual input of the PIN and for comparing the PIN to the re-entry of the PIN to configure an unprovisioned state, the microcontroller includes: a cyclic counter, a memory for storing an event history having values read from the cyclic counter triggered by the events and the second set of events for generating a first event history value based on the events and a second event history value based on the second set of events, and a deterministic random number generator algorithm using the first event history value from the PIN and the second event history value from the re-entry of the PIN to produce an encryption key; an encryption engine communicating with said microcontroller to receive the encryption key by said deterministic random number generator algorithm, said encryption engine using said encryption key for encryption of data supplied to said encryption engine; a communication channel supplying the data to and from said encryption engine, said communication channel being adapted to also communicate with an external source; a storage media for storing the data, said storage media being in communication with said encryption engine; and said encryption engine supplying encrypted data to be stored by said storage media, and said encryption engine receiving the encrypted data from said storage media to be decrypted; whereby definition of said PIN triggers a formation of said encryption key, and said encryption key has relatively much greater entropy than said PIN.
 2. The self-encrypting mass storage device as claimed in claim 1, wherein the external source is a host computer.
 3. The self-encrypting mass storage device as claimed in claim 1, wherein each of the detected said events results in reading a momentary value of said cyclic counter, and wherein each respective momentary value of said cyclic counter is stored in said memory as a portion of said event history.
 4. The self-encrypting mass storage device as claimed in claim 3, wherein said encryption key is formed by a sequential arrangement of the momentary values of said cyclic counter which have been stored in said event history during the manual input of the PIN.
 5. The self-encrypting mass storage device as claimed in claim 4, wherein said event history is formed only during an initial setting of the PIN.
 6. The self-encrypting mass storage device as claimed in claim 5, wherein the initial setting of the PIN includes an entry of the PIN a first time, the re-entry of the PIN a second time, and wherein said microcontroller can compare the PIN entered the first time with the re-entry of the PIN, and wherein the microcontroller can detect a mismatch condition and a match condition, the mismatch condition results in a rejection of the PIN, and the match condition results in an acceptance of the PIN and a formation of said encryption key.
 7. The self-encrypting mass storage device as claimed in claim 6, wherein after the formation of said encryption key, said encryption key is stored for accessing by any subsequent entry of said PIN.
 8. The self-encrypting mass storage device as claimed in claim 1, wherein said encryption key is formed exactly one time, during initial provisioning which includes setting of said PIN, and wherein said encryption key is never reset.
 9. The self-encrypting mass storage device as claimed in claim 1, further comprising a vibration sensor for detecting vibrations; said vibration sensor supplying an output to said microcontroller; and whereby the detected vibrations are used to generate random input to said microcontroller for use in the formation of said encryption key.
 10. A method for generating an encryption key of predetermined sufficient entropy in a self-encrypting mass storage device, comprising the steps of: providing a mass storage device containing an input device, said input device produces an output when activated, the input device for an initial manual input of a personal identification number (PIN); detecting events associated with the initial manual input of the PIN with a microcontroller in communication with the input device; detecting a re-entry of the PIN with the microcontroller, the re-entry of the PIN for generating a second set of events; performing a check of the amount of entropy collected from the initial manual input of the PIN for comparing the PIN to the re-entry of the PIN to configure an unprovisioned state; storing an event history having values read from a cyclic counter triggered by the events and the second set of events for generating a first event history value based on the events and a second event history value based on the second set of events; producing an encryption key from the first event history value from the PIN and the second event history value from the re-entry of the PIN using a deterministic random number generator algorithm; receiving the encryption key, from the deterministic random number generator algorithm to an encryption engine; encrypting data supplied to the encryption engine for generating encrypted data; supplying the data to and from the encryption engine to an external source with a communication channel adapted to communicate with the external source; storing the encrypted data in a storage media, the storage media being in communication with the encryption engine; and receiving the encrypted data from the storage media to the encryption engine to be decrypted, whereby definition of the PIN triggers a formation of the encryption key and the encryption key has relatively much greater entropy than the PIN.
 11. The method for generating the encryption key of sufficient entropy in the self-encrypting mass storage device as claimed in claim 10, further comprising the step of: providing said input device with manually operable push buttons.
 12. The method for generating the encryption key of sufficient entropy in a self-encrypting mass storage device as claimed in claim 10, further comprising the step of: providing said input device with a manually operable dial.
 13. The method for generating the encryption key of sufficient entropy in the self-encrypting mass storage device as claimed in claim 10, further comprising the step of: providing said input device as an RF remote fob coupled input device.
 14. A system for generating an encryption key in a self-encrypting mass storage device, the system including a host computer, comprising: a mass storage device which includes an encryption engine; a micro-controller contained within the mass storage device, said micro-controller containing a cyclic counter, the micro-controller for detecting events associated with the user input of a personal identification number (PIN) and for detecting a re-entry of said PIN, the re-entry of the PIN for generating a second set of events, the microcontroller for performing a check of the amount of entropy collected from the user input of the PIN and for comparing the PIN to the re-entry of the PIN to configure an unprovisioned state, the microcontroller includes: a cyclic counter, a memory for storing an event history having values read from the cyclic counter triggered by the events and the second set of events for generating a first event history value based on the events and a second event history value based on the second set of events, and a deterministic random number generator algorithm using the first event history value from the PIN and the second event history value from the re-entry of the PIN to produce an encryption key; an encryption engine communicating with said microcontroller to receive the encryption key by said deterministic random number generator algorithm, said encryption engine using said encryption key for encryption of data supplied to said encryption engine; a communication channel supplying the data to and from said encryption engine, said communication channel being adapted to also communicate with an external source; a storage media for storing the data, said storage media being in communication with said encryption engine; said encryption engine supplying encrypted data to be stored by said storage media, and said encryption engine receiving the encrypted data from said storage media to be decrypted and whereby definition of said PIN triggers a formation of said encryption key, and said encryption key has relatively much greater entropy than said PIN; and an application residing on the host computer for accepting the user input of the PIN.
 15. The system of claim 14, further comprising: a human interface device, which is a manually operable keyboard for producing said user input.
 16. The system of claim 14, further comprising: a human interface device, which is a manually operable mouse for producing said user input. 